{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('new') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ path('tablekeyvalue_index') }}" data-route="tablekeyvalue_index">{{ dry_translation('list') }}</a>
    </div>
{% endblock %}
{% block body %}
<form method="post" class="form-horizontal" id="form">
    <div class="form-group">
        <label class="col-sm-2 control-label">别名</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_alias" id="dry_alias"></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">表</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_table" id="dry_table"></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">key字段</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_key" id="dry_key"></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">value字段</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_value" id="dry_value"></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">排序语句</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_order" id="dry_order" placeholder="dry_sort asc"></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">自定义sql</label>
        <div class="col-sm-10"><textarea class="form-control" name="dry_sql" id="dry_sql" style="height:300px;"></textarea></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">备注</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_note" id="dry_note"></div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">排序</label>
        <div class="col-sm-10"><input type="text" class="form-control" name="dry_sort" id="dry_sort"></div>
    </div>
    <div class="hr-line-dashed"></div>
    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-2">
            <button class="btn btn-primary" type="submit">确定</button>
            <button class="btn btn-white" type="reset">重置</button>
        </div>
    </div>
</form>
{% endblock %}
